package com.example.demo.intf;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.example.demo.bean.Result;
import com.example.demo.exception.SPIPException;

/**
 * @author 88377761
 *
 */
@FeignClient(value = "user-admin")
public interface FileInterface {

	@PostMapping(value = "/file/upload")
	public Result upload(@RequestParam(value = "type", required = true) String type,
			@RequestParam(value = "id", required = true) String id, MultipartFile file) throws SPIPException;
}
